libxc: Expose the 1GB pages cpuid flag to guest
authorLiang Li <liang.z.li@intel.com>
Fri, 28 Nov 2014 10:52:05 +0000 (18:52 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 8 Jan 2015 13:50:06 +0000 (13:50 +0000)
commitace4e40029167123e706006583ec87c88731081a
treecb4acde10ce0e7b860beb89337babedbbf71c6d1
parent20e297f84035da854ceb6a160981f78ed56a408b
libxc: Expose the 1GB pages cpuid flag to guest

If hardware support the 1GB pages, expose the feature to guest by
default. Users don't have to use a 'cpuid= ' option in config fil
e to turn it on.

If guest use shadow mode, the 1GB pages feature will be hidden from
guest, this is done in the function hvm_cpuid(). So the change is
okay for shadow mode case.

Signed-off-by: Liang Li <liang.z.li@intel.com>
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_cpuid_x86.c